#{extends 'frameHome.html' /} #{set title:'Tags' /}

<div id=right>



#{if organization.tagging==true}
<a href="@{Tags.insertTag(organization.id)}"class="left primary pill button" target="innerframe" >Create a Tag</a>
#{/if}
#{else}
#{if userIsLead==true}
<a href="@{Tags.insertTag(organization.id)}"class="left primary pill button" target="innerframe" >Create a Tag</a> 
 #{/if}
 #{if userIsAdmin==true}
<a href="@{Tags.insertTag(organization.id)}"class="left primary pill button" target="innerframe" >Create a Tag</a> 
 #{/if}
#{/else}

		<a href="@{Tags.listOfUnusedTags(organization.id)}" class="middle pill button" target="innerframe" >Modify Tags</a> 
		<a href="@{Tags.orgTags(organization.id)}" class="right  pill button" target="innerframe">Show Organization Tags</a>


<iframe name="innerframe"
					scrolling=auto FRAMEBORDER=NO src="@{'/public/images/ButtonsIcon/tag-cloud.jpg'}"
					width="600px" height=400px></iframe>

</div>